#include <stdio.h>
int main()
{
	int n, reversedNumber = 0, remainder;

	printf("输入一个正整数: ");
	scanf("%d", &n);

	while (n != 0)
	{
		remainder = n % 10;
		reversedNumber = reversedNumber * 10 + remainder;
		n /= 10;
	}

	printf("反转后的整数: %d", reversedNumber);

	return 0;
}
